package com.autism.day01;

import java.util.ArrayList;

public class AutismList {

    public static void main (String[] args){
        //只能使用包装类，不能使用基本类型
        ArrayList<String> arrayList = new ArrayList<>();
        System.out.println(arrayList);

        boolean  isAdd = arrayList.add("autism");
        arrayList.add("kobe");
        arrayList.add("Carmelo");
        System.out.println(isAdd);
        System.out.println(arrayList);

        for (int i = 0; i < arrayList.size(); i++) {
            System.out.println("##"+arrayList.get(i));;
        }

        System.out.println(arrayList.get(1));

        System.out.println(arrayList.remove(0));
        System.out.println(arrayList);

    }
}
